package com.yl.project.lvyou.comments.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yl.framework.aspectj.lang.annotation.Excel;
import javax.persistence.*;
import com.yl.framework.web.domain.BaseEntity;

/**
 * 景区评论对象 scenic_comments
 * 
 * @author yl
 * @date 2025-03-14
 */
@Table(name="scenic_comments")
public class ScenicComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /** 景区ID */
    @Excel(name = "景区ID")

    @Column(name = "scenic_id")
    private Long scenicId;
    /** 用户ID */
    @Excel(name = "用户ID")

    @Column(name = "user_id")
    private Long userId;
    /** 评论内容 */
    @Column(name = "content")
    private String content;
    /** 点赞数 */
    @Excel(name = "点赞数")

    @Column(name = "like_count")
    private Long likeCount;
    /** 回复数 */
    @Excel(name = "回复数")

    @Column(name = "reply_count")
    private Long replyCount;
    /** 状态：0正常，1-禁用 */
    @Excel(name = "状态：0正常，1-禁用")

    @Column(name = "status")
    private Integer status;

    @Column(name = "username")
    private String username;


    @Column(name = "avatar")
    private String avatar;

    @Column(name = "is_liked")
    private String isLiked;



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setScenicId(Long scenicId) 
    {
        this.scenicId = scenicId;
    }

    public Long getScenicId() 
    {
        return scenicId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setLikeCount(Long likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount() 
    {
        return likeCount;
    }
    public void setReplyCount(Long replyCount) 
    {
        this.replyCount = replyCount;
    }

    public Long getReplyCount() 
    {
        return replyCount;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String userName) {
        this.username = userName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getIsLiked() {
        return isLiked;
    }

    public void setIsLiked(String isLiked) {
        this.isLiked = isLiked;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("scenicId", getScenicId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("likeCount", getLikeCount())
            .append("replyCount", getReplyCount())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("getUsername", getUsername())
            .append("getIsLiked", getIsLiked())
            .append("getAvatar", getAvatar())
            .toString();
    }
}
